'use strict';

const Controller = require('egg').Controller;

class DetailController extends Controller {
    async index() {
        const { ctx } = this;
        console.log(ctx.query);
        var { id } = ctx.query
        const res = await ctx.service.movie.getMovieDetailOrSearch({id:id});
        console.log(res);
        ctx.body = {
            msg: "detail",
            res
        }
    }
}

module.exports = DetailController;
